<h1>Listing hub_widgets</h1>

<table>
  <tr>
    <th>Hub</th>
    <th>Widget</th>
    <th>Size</th>
  </tr>

<% for hub_widget in @hub_widgets %>
  <tr>
    <td><%=h hub_widget.hub.name %></td>
    <td><%=h hub_widget.widget.name %></td>
    <td><%=h hub_widget.size %></td>
    <td><%= link_to 'Edit', edit_hub_hub_widget_path(@hub, hub_widget) %></td>
    <td><%= link_to 'Destroy', hub_hub_widget_path(@hub, hub_widget), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New hub_widget', new_hub_hub_widget_path(@hub) %>
